#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>

int main() 
{
    int i,j;
    int arr[9] = { 0 };
    for (i=0;i<=9;i++)
    {
        scanf("%d ", &arr[i]);
    }
    for (j=9;j>=0;j--)
    {
        printf("%d ", arr[j]);
    }
    return 0;
}